package com.lishuang.user.mapper;

import com.lishuang.user.domain.User;
import com.lishuang.basic.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lishuang
 * @since 2022-06-01
 */
public interface UserMapper extends BaseMapper<User> {

    /**
     * 发送手机验证码 -判断用户是否已经注册
     * @param phone
     * @return
     */

    User loadByPhone(String phone);

    /**
     * 判断用户邮箱是否已经注册
     * @param email
     * @return
     */

    User loadByEmail(String email);


    /**
     *  //通过Logininfo查询User
     * @param
     * @return
     */
    User loadByLogininfoId(Long id);
}
